package com.eastfair.certificate.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.certificate.enumeration.CarRecordInOrOutEnum;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.eastfair.vo.BaseVO;

/**
 * <p>
 * 实体类
 * 车辆出入证信息
 * </p>
 *
 * @author ligang
 * @since 2023-01-31
 */
@Data
@ApiModel(value = "CarRecordVO", description = "车辆出入证信息")
@VoInfo(groups = {BaseVoGroupClass.all.class})
public class CarRecordVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 车牌号码
     */
    @ApiModelProperty(value = "车牌号码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "车牌号码长度不能超过255")
    private String carCode;
    /**
     * 进场时间
     */
    @ApiModelProperty(value = "进场时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime inTime;

    /**
     * 进场时间
     */
    @ApiModelProperty(value = "进场时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime outTime;


    /**
     * 过场时间
     */
    @ApiModelProperty(value = "过场时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime passTime;


    /**
     * 停留时间
     */
    @ApiModelProperty(value = "停留时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long stayTimes;



    /**
     * 车场id
     */
    @ApiModelProperty(value = "车场id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotEmpty(message = "请填写车场id")
    @Size(max = 255, message = "车场id长度不能超过255")
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String parkId;
    /**
     * 进出场类型:#{0:进场;1:出场;}
     */
    @ApiModelProperty(value = "进出场类型:#{0:进场;1:出场;}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private CarRecordInOrOutEnum inOrOut;
    /**
     * 车辆本次进场出场标识
     */
    @ApiModelProperty(value = "车辆本次进场出场标识")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "车辆本次进场出场标识长度不能超过255")
    private String guId;
    /**
     * 通道ID
     */
    @ApiModelProperty(value = "通道ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "通道ID长度不能超过255")
    private String channelId;
    /**
     * 通道名称
     */
    @ApiModelProperty(value = "通道名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "通道名称长度不能超过255")
    private String channelName;
    /**
     * 图片路径地址
     */
    @ApiModelProperty(value = "图片路径地址")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "图片路径地址长度不能超过255")
    private String imagePath;
    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 团队id
     */
    @ApiModelProperty(value = "团队id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long teamId;
}
